package web;

import dao.MasterDao;
import dao.impl.MasterDaoImpl;
import service.MasterService;
import service.impl.MasterServiceImpl;

import java.util.Scanner;

public class TestRegisterMaster {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入编号：");
        int id = scanner.nextInt();
        System.out.print("请输入用户名：");
        String name = scanner.next();
        System.out.print("请输入密码：");
        String password = scanner.next();
        MasterService masterService=new MasterServiceImpl();
        masterService.register(id,name,password);
    }

}
